<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>手敲</title>
</head>

<body>
  <div id="app" style="color: red;font-size:20px;">
    <h2>hello{{msg}}</h2>
  </div>
  <script src="dist/vue.js"></script>
  <script>
    //umd  为window添加vue
    Vue.Mixin({ //全局
      created: function a() {
      }
    })
    Vue.Mixin({ //全局
      created: function b() {
      }
    })
    let vm = new Vue({
      el: '#app',
      data() {
        return {
          msg: '张三',
          a: {
            b: {
              c: 100
            }
          },
          arr: [1, 2, 3],
          arr2: [{ a: '987' }]
        }
      },
      props: {

      },
      watch: {

      },
      methods: {

      },
      created() {
      },
    })

    console.log('vm--------',vm);
    setTimeout(() => {
      // vm.msg = '张三1111'
      // vm._updata(vm._render())
    }, 1000)
  </script>
</body>

</html>